<?php $this->context->layout = 'form';?>
<?= \common\widgets\Asset::widget(['type'=>['dragula']])?>

<form class="form-horizontal m" id="form-edit">
    <?= \common\widgets\FormInput::widget(['name'=>'input','extend'=>['name'=>'order_sn','type'=>'hidden','info'=>$info]])?>
    <?= \common\widgets\FormInput::widget(['name'=>'forminput|支付金额','extend'=>['name'=>'pay_amount','type'=>'number','required'=>1,'info'=>$info,'tips'=>'如果支付金额发生变化，那么分销佣金也将发生变化']])?>
</form>
<?php $this->beginBlock('script'); ?>
<script>
    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save("<?=\yii\helpers\Url::to(['edit-amount'])?>", $('#form-edit').serialize());
        }
    }
</script>
<?php $this->endBlock(); ?>
